﻿@{
    var user = Html.GetCurrentUser();    
}
<div class="user-profile">
	<div class="photo-link-holder"> 
        <a href="@Url.Content("~/profiles/details/" + user.Id)" title="@Resources.EnetaMvc.YourProfile"> 
            <strong>@user.UserName</strong> 
            @if(user != null)
            {
                <img alt="image" src="@Html.GetProfileUrl(user.Id)" width="32" height="32" /> 
            }
            else 
            {
                <img alt="image" src="@Html.GetProfileUrl(-1)" width="32" height="32" /> 
            }
        </a>
    </div>
	<div class="meter-box"> 
        <a class="inner-link" href="@Url.Content("~/profiles/edit")" title="@Resources.EnetaMvc.EditProfile">Profiil 47% valmis</a>
		<div class="prozenten"> 
            <img alt="" title="Profiil 47% valmis" src="@Url.Content("~/images/img-prozenten.jpg")" width="47%" height="10" />
        </div>
		<a class="logout-link" href="#">@Resources.EnetaMvc.LogOut</a> 
    </div>
</div>